Skip to content

feat(redis): support configurable editor storage topologies - #11

Closed
nvanlaerebeke wants to merge 7 commits into
Euro-Office:mainfrom
nvanlaerebeke:feat/redis-config
Closed

nvanlaerebeke wants to merge 7 commits into
Euro-Office:mainfrom
nvanlaerebeke:feat/redis-config

Conversation

@nvanlaerebeke

@nvanlaerebeke nvanlaerebeke commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Added Helm chart support for Redis-backed editor data and statistics storage using the native Redis configuration variables introduced in:

The chart now supports:

  • Standalone Redis
  • Redis Sentinel
  • Redis Cluster
  • Independent editor data and statistics storage selection
  • Authenticated and unauthenticated Redis/Sentinel configurations
  • Validation of Redis topology and storage-mode combinations

If editorStatStorage is omitted, editor statistics use the same storage backend and Redis topology as editorDataStorage.
Set it explicitly to memory to enable Redis-backed editor data only.

Changes

  • Replace the obsolete redisConnectorName: ioredis Sentinel switch.
  • Emit the native EDITOR_DATA_STORAGE and EDITOR_STAT_STORAGE variables.
  • Configure Sentinel and Cluster node lists through chart values.
  • Centralize Redis and Sentinel secret environment variables across workloads and Helm tests.
  • Validate unsupported storage modes and conflicting Redis topologies.
  • Add Sentinel and Cluster configuration tests, including authentication checks.
  • Add standalone, data-only, Sentinel, and Cluster example values files.
  • Update chart and demo documentation.

Prerequisites

Testing this might also requires the following PRs depending how you do the testing:

  • PR #10: required depending on the test setup.
  • PR #4: fixes the database installation image repository.
  • PR #9: enables reproducible packaging through GitHub Actions.

Validation

  • helm lint .
  • Rendered default, standalone, data-only, Sentinel, and Cluster configurations.
  • Verified invalid topology combinations fail during Helm rendering.
  • Ran bash -n sources/scripts/test_redis_config.sh.

Testing

Tested with a DocumentServer image built from DocumentServer#386, including the server changes from server#46.

The following configurations were manually tested:

  • Valkey standalone without authentication
  • Valkey standalone with authentication
  • Valkey Cluster without authentication
  • Valkey Sentinel with authentication

Helm tests

The chart includes test_redis_config.sh, which is executed by helm test for Sentinel and Cluster configurations. It validates the generated native NODE_CONFIG, including topology, database, and authentication settings.

Redis connectivity and DocumentServer health are validated separately by the existing Helm test.

- Add standalone, Sentinel, and Cluster editor storage configuration
- Validate shared Redis topology and authentication settings
- Centralize Redis secret environment variables across workloads and tests
- Add Redis configuration Helm tests and example values
- Update documentation and deployment test coverage

Assisted-by: ChatGPT 5.6
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
- Add independent TLS settings for Redis nodes and Sentinel discovery
- Use TLS in connectivity checks and validate generated TLS configuration
- Pass the explicit memory statistics backend to DocumentServer
- Validate editor data and statistics storage independently
- Document TLS settings and required image support

Assisted-by: Codex:GPT-6
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
- Apply the configured service account and security contexts
- Respect test scheduling settings and global fallbacks
- Include test annotations, resource limits, and init containers

Assisted-by: Codex:GPT-6
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
Allow optional usernames while preserving existing defaults and independent
NoPass behavior. Expand authentication coverage across standalone, Sentinel,
and Cluster, and document password-only authentication.

Assisted-by: Codex:GPT-6
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
Add a shared CA Secret setting for Redis and Sentinel TLS.
Mount the bundle and configure trust in application and connectivity
test containers, avoiding duplicate configuration.

Document shared trust settings and add regression tests.

Assisted-by: Codex:gpt-6
Signed-off-by: Nico Van Laerebeke <1520618+nvanlaerebeke@users.noreply.github.com>
@meisam-ui

Copy link
Copy Markdown
Contributor

Superseded by #25, which carries this work forward on top of chart 7.0.0 (rebased/merged with main) and the current dev/redis entrypoint. Thanks for the original implementation.

@meisam-ui meisam-ui closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants